import yaml,logging,yagmail

def read(fileep):
    with open(fileep, 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)
def rizhi(time):
    logging.basicConfig(filename=f'{time}.log',
                        level=logging.DEBUG,
                        filemode='w+',
                        format='%(filename)s-%(asctime)s-%(levelname)s')
def emaili(flie):
    email =  yagmail.SMTP(user='2410811597@qq.com',host='smtp.qq.com',password='uzwlvaboffeqecfh')
    email.send(to='2410811597@qq.com',subject='报告',contents='内容',attachments=flie)